<?php
$acl = Zend_Registry::get ( 'Zend_Acl' );
$role = Zend_Registry::get ( 'Core_User' )->getRole ();
$sub_menus = array ();
?>
<ul>  
	<?php
	foreach ( $this->container as $page ) {
		?>
		<?php
		$res = $page->getResource ();
		if ($acl->isAllowed ( $role, $res ) || is_null ( $res )) {
			?>
				<?php
			if ($page->isActive ()) {
				?>
					<li class="active"><a><?php
				print $this->t ( $page->getLabel () )?></a></li>
				<?php
			} else {
				?>
				<li>
					<a class="core-top-a" href="<?php
				print $page->getHref ()?>"><?php
				print $this->t ( $page->getLabel () )?></a>
				</li>
				<?php
			}
			?>				
		<?php
		}
		?>
	<?php
	}
	?>
</ul>
<?php
if (sizeof ( $sub_menus ) > 0)
	foreach ( $sub_menus as $menu )
		print $menu;
?>